import styled from 'styled-components';

export const SheetList = styled.div`
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
`

export const SheetItem = styled.div`
  flex: 0 0 12.5%;
  max-width: 12.5%;
  padding: 0 15px 30px;
  cursor: pointer;
  transition: all .2s;
  .wrapper {
    position: relative;
    padding-right: 10px;
    &::after,&::before {
      content: "";
      width: 100%;
      height: 100%;
      background-color: #d9d9d9;
      position: absolute;
      top: 0;
      transition: all .2s;
    }
    &::after {
      right: 4px;
      transform: scale(.8);
      transform-origin: 100% 50%;
      z-index: 1;
      border-radius: 2px;
      opacity: .5;
    }
    &::before {
      right: 7px;
      transform: scale(.9);
      transform-origin: 100% 50%;
      z-index: 2;
      border-radius: 2px;
    }
    .cover {
      position: relative;
      z-index: 2;
      padding-top: 100%;
      .image {
        position: absolute;
        top: 0;
        left: 0;
        overflow: hidden;
        width: 100%;
        height: 100%;
        &::after {
          content: "";
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          border-radius: 3px;
          box-shadow: inset 1px 1px 0 rgba(0,0,0,.05), inset -1px -1px 0 rgba(0,0,0,.05);
        }
        .ant-image-img {
          border-radius: 3px;
        }
      }
      .count {
        position: absolute;
        right: 16px;
        top: 1px;
        height: 24px;
        padding-left: 9px;
        background: url(https://img.alicdn.com/tfs/TB1xEGRub9YBuNjy0FgXXcxcXXa-268-48.png) no-repeat 0;
        background-size: cover;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        line-height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        .arrow {
          display: block;
          width: 0;
          height: 0;
          border-style: solid;
          border-width: 4px 0 4px 6px;
          border-color: transparent transparent transparent #fff;
          margin-right: 5px;
        }
        &::after {
          content: "";
          position: absolute;
          right: -14px;
          top: 0;
          width: 14px;
          height: 24px;
          background: url(https://img.alicdn.com/tfs/TB1xEGRub9YBuNjy0FgXXcxcXXa-268-48.png) no-repeat 100%;
          background-size: cover;
        }
      }
    }
  }
  .info {
    margin-top: 15px;
    .name {
      max-width: 95%;
      font-size: 14px;
      color: #ffffff;
    }
  }
  &:hover {
    .wrapper {
      &::after, &:;before {
        background: rgba(250,40,0,.1);
      }
      &::before {
        right: 5px;
      }
      &::after {
        right: 0px;
      }
    }
  }
`